-- GENERATED SPELL FOR [Defias Henchman] --


function spell0_594(pUnit, Event) --@Improved Blocking,Self--
pUnit:FullCastSpellOnTarget(3248,pUnit)
pUnit:RegisterEvent('Sorts_594', 6332, 1)
end

function spell1_594(pUnit, Event) --@Shield Slam,n/a--
pUnit:FullCastSpellOnTarget(8242,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_594', 2259, 1)
end

function Sorts_594(pUnit, Event)
local choix_sorts_594 = math.random(0, 1)
if choix_sorts_594 == 0 then
pUnit:RegisterEvent('spell0_594', 1, 1)
end
if choix_sorts_594 == 1 then
pUnit:RegisterEvent('spell1_594', 1, 1)
end
end

function mob594_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_594', math.random(1500, 3000), 1)
end

function mob594_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob594_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob594_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(594, 1, 'mob594_Action')
RegisterUnitEvent(594, 2, 'mob594_Leave')
RegisterUnitEvent(594, 3, 'mob594_Kill')
RegisterUnitEvent(594, 4, 'mob594_Die')
